#include <stdio.h>
#include <unistd.h>

#include "cgi_impl.h"
#include "cgi_ctrl.h"
#include "settings_manager.h"
#include "network.h"

//#include "/work/justchen/project/kvmzu4ev/web/kvmweb/jServicesApi/jApi.h"


void jApiInit(void);

int main(int argc, char **argv)
{
	default_setting_init();

	int ret = start_cgi_daemon(process_cgi_cmd_proc, USE_DEFAULT_CGI_PORT);
	if (ret != CGI_SUCCESS)
	{
		printf("Error when starting cgi daemon.\n");
	}


	jApiInit(); 


	printf("jApp test done\n");

	//init_settings();
	//network_init();
	//adapter_check_start();
	
	while (1)
	{
		sleep(1);
	}


	
	
	return 0;
}
